﻿/*
 * Created by SharpDevelop.
 * User: André Casaca
 * Date: 17-06-2011
 * Time: 20:25
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace LP_C__5847_2010_2011
{
	/// <summary>
	/// Description of Person with all the elements.
	/// </summary>
	public class Person
        {
			public int year;
            public string name, category, degree, institution, esblishment, regime;

            /// <summary>
            /// The constructor sets the year, name, establishment, category, regime,
            /// degree and institution of one Person
            /// </summary>
            /// <param name="year">Year of the data</param>
            /// <param name="name">Name of the person</param>
            /// <param name="establishment">Establishment were the Persorson is</param>
            /// <param name="regime">Person's regime</param>
            /// <param name="degree">Person's degree</param>
            /// <param name="institution">Person's instutiton</param>
            public Person(int year, string name, string establishment, string category, string regime, string degree, string institution)
            {
                this.year = year;
                this.name = name;
                this.esblishment = establishment;
                this.category = category;
                this.regime = regime;
                this.degree = degree;
                this.institution = institution;
            }
            
            /// <summary>
     		/// Read-only backing field for the year property
     		/// </summary>
            public int GetYear {get { return year; }}
            
     		/// <summary>
     		/// Read-only backing field for the establishment property
     		/// </summary>
            public string GetEsblishment {get { return esblishment; }}
            
     		/// <summary>
     		/// Read-only backing field for the institution property
     		/// </summary>
			public string GetInstitution {get { return institution; }}
            
     		/// <summary>
     		/// Read-only backing field for the degree property
     		/// </summary>
			public string GetDegree {get { return degree; }}
     		
     		/// <summary>
     		/// Read-only backing field for the category property
     		/// </summary>
			public string GetCategory {get { return category; }}
            
     		/// <summary>
     		/// Read-only backing field for the name property
     		/// </summary>
			public string GetName {get { return name; }}
     		
     		/// <summary>
     		/// Read-only backing field for the regime property
     		/// </summary>
            public string GetRegime {get { return regime; }}
            
     		/// <summary>
     		/// to String all the fields
     		/// </summary>
            public string ToStr{get { return name + "-" + esblishment + "-" + institution + "-" + degree + "-" + category + "-" + regime; }}
        }
}
